//
//  BookCityCell.m
//  悦读
//
//  Created by dllo on 15/5/22.
//  Copyright (c) 2015年 贾建兴. All rights reserved.
//

#import "BookCityCell.h"

@implementation BookCityCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        // 定义左边视图位置
        self.leftView = [[MyBookCityView alloc]initWithFrame:CGRectMake(20, 5, ([UIScreen mainScreen].bounds.size.width  - 60 ) / 3 - 10, 150)];
        self.leftView.backgroundColor = [UIColor yellowColor];
//        self.leftView.alpha = 0.2;
        
        [self addSubview:self.leftView];
        
        [self.leftView release];
        
        self.midView = [[MyBookCityView alloc]initWithFrame:CGRectMake(([UIScreen mainScreen].bounds.size.width  - 60 ) / 3 + 30, 5, ([UIScreen mainScreen].bounds.size.width  - 60 ) / 3 - 10, 150)];
        
        [self addSubview:self.midView];
        self.midView.backgroundColor = [UIColor yellowColor];
//        self.midView.alpha = 0.2;
        [self.midView release];
        
        self.rightView = [[MyBookCityView alloc]initWithFrame:CGRectMake(([UIScreen mainScreen].bounds.size.width  - 60 ) / 3 + 40 + ([UIScreen mainScreen].bounds.size.width  - 60 ) / 3 , 5, ([UIScreen mainScreen].bounds.size.width  - 60 ) / 3 - 10, 150)];
        [self addSubview:self.rightView];
        self.rightView.backgroundColor = [UIColor yellowColor];
//        self.rightView.alpha = 0.5;
         [self.rightView release];
        
        
        
    }return self;
}

- (void)dealloc
{
    [_leftView release];
    [_midView release];
    [_rightView release];
    [super dealloc];
}

@end
